<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sorry...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
	body{
		font-family: tahoma;
	}
</style>
</head>

<body>
<table width="90%"  border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td>&nbsp;</td>
  </tr>

  <tr>
    <td align="center" valign="bottom">
        <?php
        if (in_array(APPLICATION_ENV, array('development', 'development_eser')) ) {
            echo $e->getMessage();
            //print_r($e);
            exit;

        }
        $to      = ADMIN_MAIL;
        $subject = 'Site problem on '. $_SERVER['SERVER_NAME'];
        //$message = 'DB connection error on '. $_SERVER['SERVER_NAME']. "\r\n" . 'Error:'.$e->getMessage();
        $message = 'Application error on '. $_SERVER['SERVER_NAME']. "\r\n" . 'Error: '.@$e->getMessage();
        $headers = 'From: no-reply@'. $_SERVER['SERVER_NAME']. '' . "\r\n" .
            'Reply-To: '.ADMIN_MAIL. "\r\n"
        ;

        try{
            $res = mail($to, $subject, $message, $headers);
        } catch (Exception $e) {
            //echo 'DB Error';
        }
        ?>
	</td>
  </tr>
  <tr>
    <td>&nbsp;</td>

  </tr>
</table>
</body>
</html>

